package Generics;

import java.time.LocalDate;

public class Pair<T> {

    private T first;
    private T second;

    public Pair(){
        first = null;
        second = null;
    }

    public Pair(T first,T second){
        this.first = first;
        this.second = second;
    }

    public T getFirst(){
        return first;
    }

    public T getSecond(){
        return second;
    }

    public void setFirst(T newValue){
        this.first = newValue;
    }

    public void setSecond(T newValue){
        this.second = newValue;
    }

}

class DateInterval extends Pair<LocalDate>{
    public void setSecond(LocalDate second){}
}
